package com.arui.rpc.exception;

import com.arui.rpc.enumeration.RpcError;

/**
 * @Auther: zhanyurui
 * @Date: 2021-08-08 21:41
 * @Description: RPC调用异常
 */
public class RpcException extends RuntimeException {
    public RpcException(RpcError error,String detail ){
        super(error.getMessage()+":"+detail);
    }
    public RpcException(String message,Throwable casue){
        super(message,casue);
    }
    public RpcException(RpcError error){
        super(error.getMessage());
    }
}
